3.1.89 \(\int (f x)^m (d+e x^n) (a+c x^{2 n})^p \, dx\) [89]

Optimal. Leaf size=166 \[ \frac {d (f x)^{1+m} \left (a+c x^{2 n}\right )^p \left (1+\frac {c x^{2 n}}{a}\right )^{-p} \, _2F_1\left (\frac {1+m}{2 n},-p;1+\frac {1+m}{2 n};-\frac {c x^{2 n}}{a}\right )}{f (1+m)}+\frac {e x^{1+n} (f x)^m \left (a+c x^{2 n}\right )^p \left (1+\frac {c x^{2 n}}{a}\right )^{-p} \, _2F_1\left (\frac {1+m+n}{2 n},-p;\frac {1+m+3 n}{2 n};-\frac {c x^{2 n}}{a}\right )}{1+m+n} \]

[Out]

d*(f*x)^(1+m)*(a+c*x^(2*n))^p*hypergeom([-p, 1/2*(1+m)/n],[1+1/2*(1+m)/n],-c*x^(2*n)/a)/f/(1+m)/((1+c*x^(2*n)/
a)^p)+e*x^(1+n)*(f*x)^m*(a+c*x^(2*n))^p*hypergeom([-p, 1/2*(1+m+n)/n],[1/2*(1+m+3*n)/n],-c*x^(2*n)/a)/(1+m+n)/
((1+c*x^(2*n)/a)^p)

________________________________________________________________________________________

Rubi [A]
time = 0.06, antiderivative size = 166, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 4, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {1575, 372, 371, 20} \begin {gather*} \frac {d (f x)^{m+1} \left (a+c x^{2 n}\right )^p \left (\frac {c x^{2 n}}{a}+1\right )^{-p} \, _2F_1\left (\frac {m+1}{2 n},-p;\frac {m+1}{2 n}+1;-\frac {c x^{2 n}}{a}\right )}{f (m+1)}+\frac {e x^{n+1} (f x)^m \left (a+c x^{2 n}\right )^p \left (\frac {c x^{2 n}}{a}+1\right )^{-p} \, _2F_1\left (\frac {m+n+1}{2 n},-p;\frac {m+3 n+1}{2 n};-\frac {c x^{2 n}}{a}\right )}{m+n+1} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(f*x)^m*(d + e*x^n)*(a + c*x^(2*n))^p,x]

[Out]

(d*(f*x)^(1 + m)*(a + c*x^(2*n))^p*Hypergeometric2F1[(1 + m)/(2*n), -p, 1 + (1 + m)/(2*n), -((c*x^(2*n))/a)])/
(f*(1 + m)*(1 + (c*x^(2*n))/a)^p) + (e*x^(1 + n)*(f*x)^m*(a + c*x^(2*n))^p*Hypergeometric2F1[(1 + m + n)/(2*n)
, -p, (1 + m + 3*n)/(2*n), -((c*x^(2*n))/a)])/((1 + m + n)*(1 + (c*x^(2*n))/a)^p)

Rule 20

Int[(u_.)*((a_.)*(v_))^(m_)*((b_.)*(v_))^(n_), x_Symbol] :> Dist[b^IntPart[n]*((b*v)^FracPart[n]/(a^IntPart[n]
*(a*v)^FracPart[n])), Int[u*(a*v)^(m + n), x], x] /; FreeQ[{a, b, m, n}, x] &&  !IntegerQ[m] &&  !IntegerQ[n]
&&  !IntegerQ[m + n]

Rule 371

Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[a^p*((c*x)^(m + 1)/(c*(m + 1)))*Hyperg
eometric2F1[-p, (m + 1)/n, (m + 1)/n + 1, (-b)*(x^n/a)], x] /; FreeQ[{a, b, c, m, n, p}, x] &&  !IGtQ[p, 0] &&
 (ILtQ[p, 0] || GtQ[a, 0])

Rule 372

Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Dist[a^IntPart[p]*((a + b*x^n)^FracPart[p]/
(1 + b*(x^n/a))^FracPart[p]), Int[(c*x)^m*(1 + b*(x^n/a))^p, x], x] /; FreeQ[{a, b, c, m, n, p}, x] &&  !IGtQ[
p, 0] &&  !(ILtQ[p, 0] || GtQ[a, 0])

Rule 1575

Int[((f_.)*(x_))^(m_.)*((a_) + (c_.)*(x_)^(n2_.))^(p_.)*((d_) + (e_.)*(x_)^(n_))^(q_.), x_Symbol] :> Int[Expan
dIntegrand[(f*x)^m*(d + e*x^n)^q*(a + c*x^(2*n))^p, x], x] /; FreeQ[{a, c, d, e, f, m, n, p, q}, x] && EqQ[n2,
 2*n] && (IGtQ[p, 0] || IGtQ[q, 0])

Rubi steps

\begin {align*} \int (f x)^m \left (d+e x^n\right ) \left (a+c x^{2 n}\right )^p \, dx &=\int \left (d (f x)^m \left (a+c x^{2 n}\right )^p+e x^n (f x)^m \left (a+c x^{2 n}\right )^p\right ) \, dx\\ &=d \int (f x)^m \left (a+c x^{2 n}\right )^p \, dx+e \int x^n (f x)^m \left (a+c x^{2 n}\right )^p \, dx\\ &=\left (e x^{-m} (f x)^m\right ) \int x^{m+n} \left (a+c x^{2 n}\right )^p \, dx+\left (d \left (a+c x^{2 n}\right )^p \left (1+\frac {c x^{2 n}}{a}\right )^{-p}\right ) \int (f x)^m \left (1+\frac {c x^{2 n}}{a}\right )^p \, dx\\ &=\frac {d (f x)^{1+m} \left (a+c x^{2 n}\right )^p \left (1+\frac {c x^{2 n}}{a}\right )^{-p} \, _2F_1\left (\frac {1+m}{2 n},-p;1+\frac {1+m}{2 n};-\frac {c x^{2 n}}{a}\right )}{f (1+m)}+\left (e x^{-m} (f x)^m \left (a+c x^{2 n}\right )^p \left (1+\frac {c x^{2 n}}{a}\right )^{-p}\right ) \int x^{m+n} \left (1+\frac {c x^{2 n}}{a}\right )^p \, dx\\ &=\frac {d (f x)^{1+m} \left (a+c x^{2 n}\right )^p \left (1+\frac {c x^{2 n}}{a}\right )^{-p} \, _2F_1\left (\frac {1+m}{2 n},-p;1+\frac {1+m}{2 n};-\frac {c x^{2 n}}{a}\right )}{f (1+m)}+\frac {e x^{1+n} (f x)^m \left (a+c x^{2 n}\right )^p \left (1+\frac {c x^{2 n}}{a}\right )^{-p} \, _2F_1\left (\frac {1+m+n}{2 n},-p;\frac {1+m+3 n}{2 n};-\frac {c x^{2 n}}{a}\right )}{1+m+n}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.11, size = 136, normalized size = 0.82 \begin {gather*} \frac {x (f x)^m \left (a+c x^{2 n}\right )^p \left (1+\frac {c x^{2 n}}{a}\right )^{-p} \left (d (1+m+n) \, _2F_1\left (\frac {1+m}{2 n},-p;1+\frac {1+m}{2 n};-\frac {c x^{2 n}}{a}\right )+e (1+m) x^n \, _2F_1\left (\frac {1+m+n}{2 n},-p;\frac {1+m+3 n}{2 n};-\frac {c x^{2 n}}{a}\right )\right )}{(1+m) (1+m+n)} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(f*x)^m*(d + e*x^n)*(a + c*x^(2*n))^p,x]

[Out]

(x*(f*x)^m*(a + c*x^(2*n))^p*(d*(1 + m + n)*Hypergeometric2F1[(1 + m)/(2*n), -p, 1 + (1 + m)/(2*n), -((c*x^(2*
n))/a)] + e*(1 + m)*x^n*Hypergeometric2F1[(1 + m + n)/(2*n), -p, (1 + m + 3*n)/(2*n), -((c*x^(2*n))/a)]))/((1
+ m)*(1 + m + n)*(1 + (c*x^(2*n))/a)^p)

________________________________________________________________________________________

Maple [F]
time = 0.06, size = 0, normalized size = 0.00 \[\int \left (f x \right )^{m} \left (d +e \,x^{n}\right ) \left (a +c \,x^{2 n}\right )^{p}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((f*x)^m*(d+e*x^n)*(a+c*x^(2*n))^p,x)

[Out]

int((f*x)^m*(d+e*x^n)*(a+c*x^(2*n))^p,x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x)^m*(d+e*x^n)*(a+c*x^(2*n))^p,x, algorithm="maxima")

[Out]

integrate((x^n*e + d)*(c*x^(2*n) + a)^p*(f*x)^m, x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x)^m*(d+e*x^n)*(a+c*x^(2*n))^p,x, algorithm="fricas")

[Out]

integral((x^n*e + d)*(c*x^(2*n) + a)^p*(f*x)^m, x)

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x)**m*(d+e*x**n)*(a+c*x**(2*n))**p,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x)^m*(d+e*x^n)*(a+c*x^(2*n))^p,x, algorithm="giac")

[Out]

integrate((x^n*e + d)*(c*x^(2*n) + a)^p*(f*x)^m, x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\left (a+c\,x^{2\,n}\right )}^p\,{\left (f\,x\right )}^m\,\left (d+e\,x^n\right ) \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + c*x^(2*n))^p*(f*x)^m*(d + e*x^n),x)

[Out]

int((a + c*x^(2*n))^p*(f*x)^m*(d + e*x^n), x)

________________________________________________________________________________________